form {
  width: 400px;
  padding: 20px;
  border: 3px solid pink;
  margin: 50px auto;
  display: flex;
  flex-direction: column;
  padding-top: 50px;
  position: relative;
}

form>.error {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 150px;
  text-align: center;
  margin-left: -75px;
  color: red;
  display: none;
}

form>label {
  height: 50px;
  display: flex;
  align-items: center;
}

form>label>input {
  padding-left: 20px;
}

form>.avatar {
  width: 200px;
  height: 200px;
  margin-bottom: 10px;
}

form>.avatar>img {
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
}

form>.avatar>input {
  display: none;
}